package com.drojian.demo1.test6;

import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import com.drojian.demo.R;

public class MyViewGroupActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.ui6_activity_my_view_group);

        ListView listOne = findViewById(R.id.list_one);
        ListView listTwo = findViewById(R.id.list_two);

        String[] str1 = getResources().getStringArray(R.array.myNumArray);
        String[] str2 = getResources().getStringArray(R.array.MyLetterArray);

        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,R.layout.ui6_list_item_text,str1);
            listOne.setAdapter(adapter);
        ArrayAdapter<String> adapter1 = new ArrayAdapter<String>(this,R.layout.ui6_list_item_text,str2);
            listTwo.setAdapter(adapter1);
    }
}